def fibonacci():
    n_1, n_2 = 1, 0
    while True:
        yield n_2
        n = n_1 + n_2
        n_2 = n_1
        n_1 = n


if __name__ == "__main__":
    from itertools import islice
    from sys import argv

    for fib_num in islice(fibonacci(), int(argv[1])+1):
        print fib_num,
    print "..."
